<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>资源列表</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>
<script type="text/javascript">

function removeResc(id){

	if(window.confirm("确认删除？")){
		window.location.href = "${ctx}/security/resc!remove.do?ids="+id;
	}
}

$(function(){

	$("a[name='modifyHref']").click(function(){
		var id = $(this).attr("title");
		art.dialog.open('${ctx}/security/resc!edit.do?id='+id,{title:'修改资源',width:820,height:550,lock:true},false);
    });

	$("#addRescLink").click(function(){
		var id = $(this).attr("title");
		art.dialog.open('${ctx}/security/resc!addPrepare.do',{title:'新增菜单',width:820,height:550,lock:true},false);
    });

	m2('m1_009','m1_009_03');
});


</script>
</head>
<body>
<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<form action="${ctx }/security/resc!list.do" method="post" id="memeber_list_form" name="memeber_list_form">
<table width="960" cellpadding="0" cellspacing="0" class="tbl_border" align="center">
<tr><td style="padding-top: 20px;">
<table  align="center" width="900" class="tbl" cellpadding="0" cellspacing="0" style="margin: 0 auto;">
	<tr bgcolor="#CDE1ED">
		<td height="35">序号</td>
		<td>功能名称</td> <!-- 中文名称 -->
		<!--  <td>名称</td>  英文名称-->
		<!-- <td>类型</td> -->
		<td>URL</td>
		<td>操作&nbsp;&nbsp;<a id="addRescLink" style="color: blue;cursor: pointer">新增</a></td>
	</tr>
	<c:forEach var="resc" items="${page.result}" varStatus="status">
		<tr>
			<td height="30">${status.count }</td>
			<td>${resc.descn }</td>
			<%--<td>${resc.name }</td> --%>
			<%--<td>${resc.resType }</td>--%>
			<td>${resc.resString }</td>
			<td>
				<a name="modifyHref" style="color: blue;cursor: pointer" title="${resc.id }">修改</a>&nbsp;
				<a href="javascript:removeResc(${resc.id })"  style="color: blue;cursor: pointer">删除</a>&nbsp;
			</td>
		</tr>
	</c:forEach>
</table>
</td></tr>
<tr>
		<td colspan="100%" class="nw12a">
			<div align="right" style="padding-right: 20px;"><jsp:include page="/commons/paging_footer.jsp"/></div>
		</td>
</tr>
</table>
</form>

<!-- 页面底部 -->
<jsp:include page="/commons/foot.jsp"></jsp:include>
</body>
</html>